// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

// 分页获取数据
export const getYxManageList = params => {
    return postRequest('/yxManage/getByPage', params);
};
//获取全部
export const getAllYxManageList = params => {
    return postRequest('/yxManage/getAll', params);
};
// 添加
export const addYxManage = params => {
    return postRequest('/yxManage/insertOrUpdate', params);
};
// 编辑
export const editYxManage = params => {
    return postRequest('/yxManage/insertOrUpdate', params);
};
// 删除
export const deleteYxManage = params => {
    return postRequest('/yxManage/delByIds', params);
};

export const importData = params => {
    return postBodyRequest('/yxManage/importData', params);
};

// 获取全部用户数据
export const getAllCollegeData = params => {
    return postRequest('/yxManage/getAll', params);
};

// 根据高校代码获取所有院系
export const getAllCollege = params => {
    return postRequest('/yxManage/getAllCollege', params);
};

// 省级获取所有院系
export const proGetAllCollage = params => {
    return postRequest('/yxManage/proGetAllCollage', params);
};
